    <div id="leagueTableResults">
    <h2>Tabelle &amp; Ergebnisse  - $Name</h2>
       
        <% if Table %>
            <table class="leagueTable">
                <thead>
                    <tr>
                        <th class="nameLong">Team Name</th>
                        <th class="number">SP</th>
                        <th class="number">G+</th>
                        <th class="number">G-</th>
                        <th class="number">+/-</th>
                        <th class="number">S</th>
                        <th class="number">N</th>
                        <th class="number">U</th>
                        <th class="number">FP</th>
                        <th class="number">PKT</th>
                        <th class="number">FSP</th>
                        <th class="number">SP</th>
                    </tr>
                 </thead>
                 <tbody>
            <% control Table %>
                    <tr>
                        <td class="nameLong">$Team.Title</td>
                        <td class="number">$PlayedGames</td>
                        <td class="number">$GoalsShot</td>
                        <td class="number">$GoalsRecieved</td>
                        <td class="number">$GoalsDifference</td>
                        <td class="number">$Wins</td>
                        <td class="number">$Defeats</td>
                        <td class="number">$Draws</td>
                        <td class="number">$FairplayPoints</td>
                        <td class="number">$Points</td>
                        <td class="number red">$FairPlayFoulPoints</td>
                        <td class="number red">$FoulPoints</td>
                    </tr>
            <% end_control %>
                </tbody>
              </table>
        <% end_if %>
    <% if NextGames %>
    <h3>Nächste Runde</h3>    
    <table class="leagueTable">
    <thead>
        <tr>
            <th class="date">Anpfiff</th>
            <th class="name" >Heim</th>
            <th class="number"></th>
            <th class="name">Gast</th>
            <th class="name center">Schiedrichter</th>
        </tr>
    </thead>
    <tbody>
    <% control NextGames %>    
      <tr>
        <td class="date">$GameDate.Format(d.m.Y) <br /> $GameTime.Nice24</td>
        <td class="name">$HomeTeam.Title</td>
        <td class="number">-</td>
        <td class="name">$GuestTeam.Title</td>
        <td class="name">$Referee.Title</td>
      </tr>  
    <% end_control %>
    </tbody>
    </table>
    <% end_if %>
        
    <% if LastGames %>
    <h3>Letzte Runde</h3>    
    <table class="leagueTable">
    <thead>
        <tr>
            <th class="date">Anpfiff</th>
            <th class="name" >Heim</th>
            <th class="number"></th>
            <th class="name">Gast</th>
            <th class="name">Schiedsrichter</th>
            <th class="result center">Resultat</th>
        </tr>
    </thead>
    <tbody>
    <% control LastGames %>    
      <tr>
        <td class="date">$GameDate.Format(d.m.Y) <br />$GameTime.Nice24</td>
        <td class="name">$HomeTeam.Title</td>
        <td class="number">-</td>
        <td class="name">$GuestTeam.Title</td>
        <td class="name">$RefereeTeam.Title</td>
        <td class="result center">$Result</td>
      </tr>  
    <% end_control %>
    </tbody>
    </table>
    <% end_if %>

    <% if AllGames %>
    <h2>Spielplan</h2>
    <h3>Runde 1</h3>
    <table class="leagueTable">
    <thead>
        <tr>
            <th class="date">Anpfiff</th>
            <th class="name" >Heim</th>
            <th class="number"></th>
            <th class="name">Gast</th>
            <th class="name">Schiedsrichter</th>
            <th class="result center">Resultat</th>
        </tr>
    </thead>
    <tbody>
    <% control AllGames %>
        <% if NewRound %>
            </tbody>
            </table>
            <h3>Runde $Round</h3>
            <table class="leagueTable">
            <thead>
                <tr>
                    <th class="date">Anpfiff</th>
                    <th class="name" >Heim</th>
                    <th class="number"></th>
                    <th class="name">Gast</th>
                    <th class="name">Schiedsrichter</th>
                    <th class="result center">Resultat</th>
                </tr>
            </thead>
            <tbody>
        <% end_if %>
      <tr>
        <td class="date">$GameDate.Format(d.m.Y) <br />$GameTime.Nice24</td>
        <td class="name">$HomeTeam.Title</td>
        <td class="number">-</td>
        <td class="name">$GuestTeam.Title</td>
        <td class="name">$RefereeTeam.Title</td>
        <td class="result center">$Result</td>
      </tr>
   
    <% end_control %>
    </tbody>
    </table>
    <% end_if %>
</div> 
